package com.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 进货退货记录表
 */
public class Retreat implements Serializable {
    //主键id
    private Integer id;
    //订单id
    private Integer orderId;
    //商品id
    private String commodityId;
    //商品数量
    private String commodityCount;
    //总金额
    private Double totalPrice;
    //退货原因
    private String refundReason;
    //退货时间
    private Date refunDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommodityCount() {
        return commodityCount;
    }

    public void setCommodityCount(String commodityCount) {
        this.commodityCount = commodityCount;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getRefundReason() {
        return refundReason;
    }

    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason;
    }

    public Date getRefunDate() {
        return refunDate;
    }

    public void setRefunDate(Date refunDate) {
        this.refunDate = refunDate;
    }

    public Retreat() {
    }

    public Retreat(Integer orderId, String commodityId, String commodityCount, Double totalPrice, String refundReason, Date refunDate) {
        this.orderId = orderId;
        this.commodityId = commodityId;
        this.commodityCount = commodityCount;
        this.totalPrice = totalPrice;
        this.refundReason = refundReason;
        this.refunDate = refunDate;
    }

    public Retreat(Integer id, Integer orderId, String commodityId, String commodityCount, Double totalPrice, String refundReason, Date refunDate) {
        this.id = id;
        this.orderId = orderId;
        this.commodityId = commodityId;
        this.commodityCount = commodityCount;
        this.totalPrice = totalPrice;
        this.refundReason = refundReason;
        this.refunDate = refunDate;
    }

    @Override
    public String toString() {
        return "Retreat{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", commodityId='" + commodityId + '\'' +
                ", commodityCount='" + commodityCount + '\'' +
                ", totalPrice=" + totalPrice +
                ", refundReason='" + refundReason + '\'' +
                ", refunDate=" + refunDate +
                '}';
    }
}
